package com.akuhome.resource.DO.check.use;

import com.akuhome.resource.DO.check.AccCheck;

import java.sql.Timestamp;
import java.util.Objects;

public class DormitoryUse {
    Integer id;
    String build;
    String roomType;
    //标准,用来指示房间价格
    String standard;
    //使用间夜
    String usage;
    Double price;
    Timestamp createTime;
    Timestamp updateTime;
    Integer accCheckId;

    public DormitoryUse() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBuild() {
        return build;
    }

    public void setBuild(String build) {
        this.build = build;
    }

    public String getRoomType() {
        return roomType;
    }

    public void setRoomType(String roomType) {
        this.roomType = roomType;
    }

    public String getStandard() {
        return standard;
    }

    public void setStandard(String standard) {
        this.standard = standard;
    }

    public String getUsage() {
        return usage;
    }

    public void setUsage(String usage) {
        this.usage = usage;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getAccCheckId() {
        return accCheckId;
    }

    public void setAccCheckId(Integer accCheckId) {
        this.accCheckId = accCheckId;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DormitoryUse that = (DormitoryUse) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(build, that.build) &&
                Objects.equals(roomType, that.roomType) &&
                Objects.equals(standard, that.standard) &&
                Objects.equals(usage, that.usage) &&
                Objects.equals(price, that.price);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, build, roomType, standard, usage, price);
    }
}
